package com.sf.proxy.proxy.mapper;

import com.sf.proxy.proxy.pojo.ProxyLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ProxyLogMapper {
    @Insert("INSERT INTO ts_proxy_log (full_url, protocol,protocol_version,domain,port,path,method,origin_params,params,params_value,headers,body,status_code,client_ip,process_status) VALUES " +
            "(#{fullUrl}, #{protocol}, #{protocolVersion}, #{domain}, #{port}, #{path}, #{method}, #{originParams}, #{params}, #{paramsValue}" +
            ", #{headers}, #{body}, #{statusCode}, #{clientIp}, #{processStatus})")
    void insertProxyLog(ProxyLog proxyLog);
}
